#ifndef __DATA_PACKET_
#define __DATA_PACKET_

#define NMAE_SIZE 		64
#define BUFF_SIZE 		1024
#define SOCK_BUF_SIZE 	4096
#define FILE_HEAD		100
#define REG_ERROR		"The user name"
#define NO_USER			"$$Sorry we don't have this user!!!$$"
#define ERR_INFO		-1
#define	REG_INFO		0
#define	CHAT_INFO		1
#define FIDA_INFO		5
#define FILE_INFO		6

int mark;
char buf[SOCK_BUF_SIZE];

typedef struct user_data{
	int mark;
	int fd;
	char name[NMAE_SIZE];	
}user_data;

typedef struct chat_packet{
	int mark;
	char tar_name[NMAE_SIZE];
	char buff[BUFF_SIZE];	
}chat_packet;

typedef struct public_cat_packet{
	int mark;
	char buff[BUFF_SIZE];
}public_cat_packet;

user_data user;
chat_packet packet;
public_cat_packet public_cat;

#endif